export function getGradeInSchool(type) {
	const year = new Date()
	let nowYear = year.getFullYear()
	if (year.getMonth() + 1 >= 9) {
		nowYear = nowYear
	} else {
		nowYear = nowYear - 1
	}
	let arr = []

	for (let i = 0; i < 4; i++) {
		arr.push(nowYear)
		nowYear = nowYear - 1
	}
	let gradearr = arr.map(i => {
		return {
			gradeDesc: `${i}级`,
			grade: i + ''
		}
	})
	if (type === '1') { // 用于区分 是否可以为空
		return gradearr
	} else {
		gradearr.unshift({
			grade: '',
			gradeDesc: "年级不限",
		})
		return gradearr
	}


}
